﻿using System.Data.Entity;
using Domain.Entities;

namespace Domain
{
    public partial class EFDbContext : DbContext
    {
       
        public EFDbContext(string connectionString)
        {
            Database.Connection.ConnectionString = connectionString;
        }

        public DbSet<Category> Categories { get; set; }
        public DbSet<Prepackage> Prepackages { get; set; }
        public DbSet<Producer> Producers { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<Cart> Carts { get; set; }
        public DbSet<Produce> Produces { get; set; }
        public DbSet<ProduceInPackage> ProduceInPackages { get; set; }

     

        public DbSet<OrderStatus> OrderStatuses { get; set; }
        public DbSet<OrderDetail> OrderDetails { get; set; }
        public DbSet<Order> Orders { get; set; }
    }
}
